package com.whucke.im;

import com.whucke.im.client.Client;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.PostConstruct;

@SpringBootApplication
public class ImClientApplication {

    @Autowired
    private Client client;

    public static void main(String[] args) {
        SpringApplication.run(ImClientApplication.class, args);
    }

    @PostConstruct
    public void start() {
        new Thread(client).start();
    }

}
